package com.gxa.mapper;

import com.gxa.common.vo.AttendancePageRequest;
import com.gxa.common.vo.CountStatusVo;
import com.gxa.entity.CustomerManagement;
import com.gxa.entity.SysPatient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerManagementMapper {
    List<CustomerManagement> selectCustomerManagementList();

    int insertCustomerManagement(CustomerManagement customerManagement);

    CustomerManagement selectCustomerManagementById(Integer id);

    int deleteCustomerManagement(Integer id);

    int updateCustomerManagement(@Param("customerManagement") CustomerManagement customerManagement);

    List<CustomerManagement> selectCustomerManagementByTitle(String title);


    /**
     * 根据状态返回计数
     * @return
     */
    CountStatusVo countDiagnosisByStatus(AttendancePageRequest attendancePageRequest);

}
